// 页面刷新存储的参数
export default class commonStore{
    state = {
        menuParams: {},//菜单参数
        searchParams: {},//查询项参数
        routeParams: {},//路由传参
        showOtherParam: false,
    }
    getters = {
        menuParams: state=> state.menuParams,
        searchParams: state=> state.searchParams,
        routeParams: state=> state.routeParams,
        showOtherParam: state=> state.showOtherParam,
    }
    mutations = {
        setMenuParams(state, menuParams){
            state.menuParams = menuParams;
        },
        setSearchParams(state, searchParams){
            state.searchParams = searchParams;
        },
        setRouteParams(state, routeParams){
            state.routeParams = routeParams;
        },
        setShowOtherParam(state, showOtherParam){
            state.showOtherParam = showOtherParam;
        }
    }
    actions(){

    }
}